package com.yuanyefu.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.scheduling.annotation.Async;

/**
 * Created by Administrator on 2017/9/17 0017.
 */
@Aspect
public class LoggerAspect {
    @Before("execution(* com.yuanyefu.aop.UserService.login(..))")
    public void logBefore(){
        System.out.println("[logger] User try to login...");
    }
}
